import request from '@/utils/axios';

interface IResponseType<P = {}> {
    code?: number;
    msg: string;
    data: P;
}

export const list = (dictionaryCode: string)=>{
    return request<IResponseType>({
        url: '/dict/list',
        method: 'get',
        params: { dictionaryCode: dictionaryCode }
    });
}

export default { list };